import request from '@/utils/request'
import { getServicePath } from '@/api/baseUrlConfig'
const servicePath = getServicePath()

// 组织积分统计
export function queryByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-records/queryByCondition',
    method: 'get',
    params: data
  })
}

// 组织内个人积分统计
export function queryRecordsByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-records/queryRecordsByCondition',
    method: 'get',
    params: data
  })
}

// 个人积分统计
export function queryDetailByCondition (data) {
  return request({
    url: (servicePath?.zhdjProjectServer || '') + '/points-detail/queryByCondition',
    method: 'get',
    params: data
  })
}
